<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>The source code</title>
  <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
  <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
  <style type="text/css">
    .highlight { display: block; background-color: #ddd; }
  </style>
  <script type="text/javascript">
    function highlight() {
      document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
    }
  </script>
</head>
<body onload="prettyPrint(); highlight();">
  <pre class="prettyprint lang-js"><span id='BUI'>/**
</span> * @fileOverview 表格布局的项，是一个个的单元格
 * @ignore
 */


var BUI = require(&#39;bui-common&#39;),
	Base = require(&#39;./base&#39;);

<span id='BUI-Layout-Item-Cell'>/**
</span> * @class BUI.Layout.Item.Cell
 * 表格布局的子项
 * @extends BUI.Layout.Item
 */
var Cell = function(config){
	Cell.superclass.constructor.call(this,config);
};

Cell.ATTRS = {

<span id='BUI-Layout-Item-Cell-cfg-row'>	/**
</span>	 * 所属的行,需要指定行，便于计算，列根据顺序决定
	 * @cfg {Number} row
	 */
	row : {

	},
<span id='BUI-Layout-Item-Cell-property-rowspan'>	/**
</span>	 * 占据的行
	 * @type {Number}
	 */
	rowspan : {
		value : 1
	},
<span id='BUI-Layout-Item-Cell-property-colspan'>	/**
</span>	 * 列
	 * @type {Number}
	 */
	colspan : {
		value : 1
	},
<span id='BUI-Layout-Item-Cell-property-attrProperties'>	/**
</span>	 * 使用的属性字段
	 * @type {Array}
	 */
	attrProperties : {
		value : [&#39;rowspan&#39;,&#39;colspan&#39;]
	},
<span id='BUI-Layout-Item-Cell-property-cells'>	/**
</span>	 * 占用的单元格个数
	 * @type {Number}
	 */
	cells : {
		getter : function(){
			return this.get(&#39;rowspan&#39;) * this.get(&#39;colspan&#39;);
		}
	}
};

BUI.extend(Cell,Base);

BUI.augment(Cell,{

});

module.exports = Cell;
</pre>
</body>
</html>
